package hu.bme.mit.rifl.business.nodes;

import hu.bme.mit.rifl.business.base.WFElement;
import hu.bme.mit.rifl.business.shared.Coordinator;

/**
 * Worker node which logically enqueues the new order.
 */
public class EnqueueOrder extends WFElement {

	public EnqueueOrder(Coordinator coordinator) {
		super(coordinator, "EnqueueOrder");
	}

	@Override
	public void process() {
		this.order.setState("QUEUED");
		this.order.setStateCodes(2);
	}
}
